import request from '@/utils/request';
export const serviceHead = '/omsystem'; // 项目前缀

// 查询拣货列表
export function getListService (params) {
  return request({
    url: `${serviceHead}/orderOutPick/myTasks`,
    method: 'get',
    params: params
  });
}

// 查询拣货详细
export function getDetailService (id) {
  return request({
    url: `${serviceHead}/orderOutPick/details/${id}`,
    method: 'get'
  });
}

// 新增拣货
export function addService (params) {
  return request({
    url: `${serviceHead}/orderOutPick/createPickTask`,
    method: 'post',
    data: params
  });
}